package com.laery0.xixin.controller;


import com.laery0.xixin.po.CiReport;
import com.laery0.xixin.po.ResponseBean;
import com.laery0.xixin.service.CiReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/cireport")
public class CiReportController {
    @Autowired
    private CiReportService ciReportService;

    @PostMapping("/")
    public ResponseBean<List<CiReport>> listCiReport(@RequestBody CiReport ciReport) {
        return ciReportService.listCiReport(ciReport.getOrderId());
    }
}
